import Vue from "vue";
import Router from "vue-router";

// 首页组件
import Homepage from "@/components/Homepage";
import Daily from "@/components/Daily";
import Notice from "@/components/Notice";
import IDcard from "@/components/IDcard";
import Article from "@/components/Article";
import Video from "@/components/Video";
// import BBS from '@/components/BBS'

// 学生证组件
import Info from "@/components/Info";
import Nick from "@/components/Nick";
import Store from "@/components/Store";
import History from "@/components/History";
import Bind from "@/components/Bind";

// 文章详情
import ArticleDetail from "@/components/ArticleDetail";

// 视频详情
import VideoDetail from "@/components/VideoDetail"

Vue.use(Router);

// 这里添加判断微信登陆
// router.beforeEach((to,from, next))

export default new Router({
  //配置路由
  routes: [{
      path: "/",
      name: "Homepage",
      component: Homepage
    },
    {
      path: "/Daily",
      name: "Daily",
      component: Daily
    },
    {
      path: "/Notice",
      name: "Notice",
      component: Notice
    },
    {
      path: "/IDcard",
      name: "IDcard",
      component: IDcard
    },
    {
      path: "/IDcard/Info",
      name: "Info",
      component: Info
    },
    {
      path: "/IDcard/Store",
      name: "Store",
      component: Store
    },
    {
      path: "/IDcard/Bind",
      name: "Bind",
      component: Bind
    },
    {
      path: "/IDcard/History",
      name: "History",
      component: History
    },
    {
      path: "/IDcard/Info/Nick",
      name: "Nick",
      component: Nick
    },
    {
      path: "/Article",
      name: "Article",
      component: Article
    },
    {
      path: "/Article/ArticleDetail",
      name: "ArticleDetail",
      component: ArticleDetail
    },
    {
      path: "/Video",
      name: "Video",
      component: Video
    },
    {
      path: "/Video/VideoDetail",
      name: "VideoDetail",
      component: VideoDetail
    },

    
  ],
  mode: "history",

});
